package com.suez.eimsserver.server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

import com.suez.eimsserver.runnable.ServerRunnable;
import com.suez.eimsserver.runnable.ServerRunnable;

public class EimsServer {
	public static void main(String[] args) throws IOException {
		ServerSocket ss=new ServerSocket(4442);
		
		System.out.println("server started........");
		System.out.println("Port is 4442.");
		while(true){//实现多对一链接服务器
			Socket socket=ss.accept();
			//处理多线程
			new Thread(new ServerRunnable(socket)).start();
			
		}
	}
		
}
